package iopera;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-07-13
 * Time: 14:26
 */
public class ShowIOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书");

        int currentSized = bookList.getUsedSized();
        for (int i = 0; i < currentSized; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }

    }
}
